const Koa = require('koa');

const Router = require('koa-router');
const stuRouter = require('./router/student')
const bodyParser = require('koa-bodyparser')

var app = new Koa();
app.use(bodyParser());

///student/list

var router = new Router();
router.use('/student',stuRouter.routes())

app.use(router.routes())


app.listen(3000,()=>{
  console.log('localhost:3000 start...')
})